.content {
    display: none;
    height: 100%;
    background-color: var(--Colors-Use-Neutral-Bg);

    ::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 8px;
        /*高宽分别对应横竖滚动条的尺寸*/
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 10px;
        box-shadow: none;
        background-clip: padding-box;
        border: 1px solid transparent;
    }

    ::-webkit-scrollbar-track {
        border-radius: 0;
        box-shadow: none;
        background: none;
    }

    ::-webkit-scrollbar-thumb:hover {
        border-color: var(--Colors-Use-Neutral-Border);
    }

    .content-icon {
        color: var(--Colors-Use-Neutral-Text-1-Title);
        margin-right: 4px;
        cursor: pointer;

        &:hover {
            color: var(--Colors-Use-Main-Primary);
        }
    }

    .content-icon-active {
        color: var(--Colors-Use-Main-Primary);
    }

    .left {
        width: 300px;
        border-right: 1px solid var(--Colors-Use-Neutral-Border);
        position: relative;
        background-color: var(--Colors-Use-Basic-Background);

        .left-heard {
            height: 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 12px;
            border-bottom: 1px solid var(--Colors-Use-Neutral-Border);

            .left-title {
                color: var(--Colors-Use-Neutral-Text-1-Title);
                font-weight: 500;
                font-size: 12px;
                margin: 0 8px;
            }

            .left-number {
                padding: 0px 8px;
                height: 16px;
                background: var(--Colors-Use-Neutral-Bg);
                border-radius: 8px;
                display: flex;
                align-items: center;
                color: var(--Colors-Use-Neutral-Text-1-Title);
                font-size: 12px;
            }

            .remove-icon {
                margin-right: 8px;
                cursor: pointer;

                svg {
                    width: 16px;
                    height: 16px;
                    color: var(--Colors-Use-Error-Primary);
                }
            }
        }

        .left-content {
            padding: 12px;
            height: calc(100% - 78px);
            overflow-y: overlay;
        }

        .left-footer {
            height: 44px;
            border-top: 1px solid var(--Colors-Use-Neutral-Border);
            padding: 8px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .button-done {
                padding: 0 12px;
                height: 28px;
                background: var(--Colors-Use-Main-Primary);
                border-radius: 4px;
                color: var(--Colors-Use-Neutral-Text-1-Title);
                border: 1px solid var(--Colors-Use-Main-Primary);
                cursor: pointer;
            }

            .button-export {
                padding: 0 12px;
                height: 28px;
                background-color: var(--Colors-Use-Main-Bg);
                border: 1px solid var(--Colors-Use-Main-Border);
                border-radius: 4px;
                color: var(--Colors-Use-Main-Primary);
                cursor: pointer;
            }

            .button-cancel {
                padding: 0 12px;
                height: 28px;
                background: var(--Colors-Use-Basic-Background);
                border: 1px solid var(--Colors-Use-Neutral-Border);
                border-radius: 4px;
                border: 1px solid var(--Colors-Use-Neutral-Border);
                cursor: pointer;
            }

            button {
                margin-right: 8px;
            }
        }
    }

    .middle {
        flex: 1;
        background-color: var(--Colors-Use-Neutral-Bg);
        max-width: calc(100% - 730px);
    }

    .right {
        width: 430px;
        border-left: 1px solid var(--Colors-Use-Neutral-Border);
        background-color: var(--Colors-Use-Basic-Background);
        padding: 12px;

        .right-heard {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 0;

            .header-title {
                display: flex;
                align-items: center;
                font-weight: 500;
                font-size: 16;
                color: var(--Colors-Use-Neutral-Text-1-Title);
            }
        }

        .right-help {
            font-size: 12px;
            color: var(--Colors-Use-Neutral-Disable);
            margin-top: 16px;
            margin-bottom: 8px;
            height: 16px;
        }
    }
}

.content-show {
    display: flex;
}

@media screen and (max-width: 900px) {
    .content {
        .left {
            width: 240px;
        }

        .middle {
            max-width: calc(100% - 590px);
        }

        .right {
            width: 350px;
        }
    }
}

.first-menu-list {
    width: 100%;

    .first-menu-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 40px;
        border-bottom: 1px solid var(--Colors-Use-Neutral-Border);
        color: var(--Colors-Use-Neutral-Text-1-Title);
        padding: 12px 8px;
        user-select: none;

        .trash-icon {
            margin-left: 8px;
            color: var(--Colors-Use-Error-Primary);
            display: none;
        }

        &:hover {
            background-color: var(--Colors-Use-Neutral-Bg-Hover);

            .trash-icon {
                display: inline-flex;
            }
        }
    }

    .first-menu-item-select {
        background: var(--Colors-Use-Main-Primary);
        color: var(--Colors-Use-Main-On-Primary);
        border-radius: 4px;

        svg {
            color: var(--Colors-Use-Main-On-Primary);
        }

        .first-sub-menu-number {
            color: var(--Colors-Use-Main-On-Primary);
        }

        &:hover {
            background-color: var(--Colors-Use-Main-Hover);
        }
    }

    .first-menu-item-left {
        width: 90%;

        .first-menu-item-label {
            font-weight: 400;
            font-size: 12px;
            width: calc(100% - 16px);
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            word-break: break-all;
        }
    }

    .first-sub-menu-number {
        color: var(--Colors-Use-Neutral-Disable);
        font-weight: 400;
        font-size: 12px;
    }

    .first-drag-state {
        position: absolute;
        bottom: -24px;
        left: 0;

        svg {
            color: var(--Colors-Use-Error-Primary);
            width: 16px;
            height: 16px;
        }
    }
}

.second-menu {
    padding: 12px;
    overflow-y: overlay;
    height: 100%;
    display: flex;
    flex-direction: column;

    .second-menu-heard {
        .second-menu-heard-input {
            padding: 0px 0px 8px;
            height: 32px;
            border-bottom: 1px solid var(--Colors-Use-Neutral-Border);

            :global {
                .ant-input-affix-wrapper {
                    padding-left: 0;

                    .ant-input {
                        color: var(--Colors-Use-Neutral-Text-1-Title);

                        &:placehoder {
                            color: var(--Colors-Use-Neutral-Text-3-Secondary);
                        }
                    }
                }
            }

            .trash-style {
                width: 22px;
                height: 22px;
                border-radius: 4px;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .trash-style:hover {
                background: var(--Colors-Use-Neutral-Bg-Hover);
            }

            svg {
                color: var(--Colors-Use-Error-Primary);
            }
        }

        .second-menu-heard-tip {
            height: 16px;
            font-weight: 400;
            font-size: 12px;
            line-height: 16px;
            color: var(--Colors-Use-Neutral-Disable);
            margin-top: 16px;
        }
    }

    .second-menu-list {
        flex: 1;

        .second-menu-drop {
            min-height: calc(100% - 76px);
        }

        .second-menu-no-data {
            padding: 12px;
            margin-top: 8px;
            width: 100%;
            height: 60px;
            background: var(--Colors-Use-Main-Bg);
            border: 1px dashed var(--Colors-Use-Main-Border);
            border-radius: 4px;
            display: flex;
            align-items: center;
        }

        .second-menu-text {
            font-size: 12px;
            color: var(--Colors-Use-Main-Primary);
        }

        .second-menu-photograph-icon {
            color: var(--Colors-Use-Main-Border);
            margin-right: 8px;
        }

        .second-menu-item-content {
            display: flex;
            align-items: center;
            width: 100%;
            margin-top: 8px;
        }

        .second-menu-item {
            min-height: 60px;
            padding: 12px;
            background: var(--Colors-Use-Basic-Background);
            border: 1px solid var(--Colors-Use-Neutral-Border);
            border-radius: 4px;
            display: flex;
            align-items: center;
            flex: 1;
            width: calc(100% - 40px);

            .avatar-style {
                border-radius: unset;
                background: unset;
                display: inline-flex;
                justify-content: center;
                align-items: center;

                :global {
                    img {
                        margin-right: 4px;
                        width: 28px;
                        height: 28px;
                        border-radius: 50%;
                        border: 1px solid var(--Colors-Use-Neutral-Bg);
                    }
                }

                svg {
                    width: 24px;
                    height: 24px;
                }
            }

            svg {
                margin-right: 8px;
                color: var(--Colors-Use-Neutral-Disable);
            }

            .second-menu-label-body {
                width: calc(100% - 70px);
            }

            .second-menu-label-content {
                color: var(--Colors-Use-Neutral-Text-1-Title);
                font-size: 12px;
                display: inline-flex;
                align-items: center;
                width: 100%;

                .second-menu-label {
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    word-break: break-all;
                    margin-right: 8px;
                    max-width: calc(100% - 60px);
                    line-height: 16px;
                }

                .second-menu-edit-icon {
                    width: 16px;
                    height: 16px;

                    svg {
                        width: 16px;
                        height: 16px;
                        cursor: pointer;
                        color: var(--Colors-Use-Neutral-Text-1-Title);

                        &:hover {
                            color: var(--Colors-Use-Main-Primary);
                        }
                    }
                }
            }

            .second-menu-describe {
                font-size: 11px;
                color: var(--Colors-Use-Neutral-Disable);
                line-height: 16px;
            }
        }

        .close-icon {
            svg {
                margin-right: 0;
                color: var(--Colors-Use-Neutral-Text-1-Title);
            }
        }
    }

    .second-menu-text-bold {
        font-weight: 600;
    }
}

.menu-item-drag {
    background: var(--Colors-Use-Main-Bg) !important;
    border: 1px solid var(--Colors-Use-Main-Border) !important;
    // border-bottom: 1px solid var(--Colors-Use-Main-Border) !important;
    border-radius: 4px;
    color: var(--Colors-Use-Neutral-Text-1-Title) !important;

    .first-sub-menu-number {
        color: var(--Colors-Use-Neutral-Disable) !important;
    }

    svg {
        color: var(--Colors-Use-Main-Primary) !important;
    }

    .first-drag-state {
        svg {
            color: var(--Colors-Use-Error-Primary) !important;
        }
    }
}

.display-flex {
    display: flex;
    align-items: center;
}

.system-function-list {
    // padding: 0 12px;
    height: calc(100% - 64px);
    overflow-y: overlay;

    .system-function-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 44px;
        border-top: 1px solid var(--Colors-Use-Neutral-Border);
        padding: 10px 0px;
        position: relative;

        &:hover {
            background-color: var(--Colors-Use-Neutral-Bg-Hover);
            padding: 0 8px;
        }

        .menu-icon {
            margin-right: 8px;
            height: 24px;
            width: 24px;

            svg {
                width: 24px;
                height: 24px;
            }
        }

        .menu-label {
            font-size: 12px;
            color: var(--Colors-Use-Neutral-Text-1-Title);
            margin-right: 8px;
        }

        .menu-question-icon {
            color: var(--Colors-Use-Neutral-Disable);
            margin-right: 8px;
            cursor: pointer;

            svg {
                width: 16px;
                height: 16px;

                &:hover {
                    color: var(--Colors-Use-Main-Primary);
                }
            }
        }

        .have-add {
            font-size: 12px;
            color: var(--Colors-Use-Neutral-Disable);
            padding: 4px 8px;
        }

        .menu-cancel {
            font-size: 12px;
            padding: 4px 8px;
            color: var(--Colors-Use-Error-Primary);
            cursor: pointer;

            &:hover {
                color: var(--Colors-Use-Error-Border);
            }

            &:active {
                color: var(--yakit-danger-6);
            }
        }
    }

    .system-function-item-isDragging {
        background-color: var(--Colors-Use-Main-Bg);
        border: 1px solid var(--Colors-Use-Main-Primary);
        border-radius: 4px;
        padding-left: 8px;

        .first-drag-state {
            position: absolute;
            bottom: -24px;
            left: 0;

            svg {
                color: var(--Colors-Use-Error-Primary);
            }
        }
    }
}

.plugin-local-list {
    height: calc(100% - 64px);
    overflow-y: overlay;

    .plugin-local-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 44px;
        border-top: 1px solid var(--Colors-Use-Neutral-Border);
        padding: 8px 0px;
        width: 100%;
        position: relative;

        &:hover {
            background-color: var(--Colors-Use-Neutral-Bg-Hover);
            padding: 0 8px;
        }

        .have-add {
            font-size: 12px;
            color: var(--Colors-Use-Neutral-Disable);
            padding: 4px 8px;
        }

        .menu-cancel {
            font-size: 12px;
            padding: 4px 8px;
            color: var(--Colors-Use-Error-Primary);
            cursor: pointer;

            &:hover {
                color: var(--Colors-Use-Error-Border);
            }

            &:active {
                color: var(--yakit-danger-6);
            }
        }
    }

    .plugin-local-item-left {
        display: flex;
        align-items: center;
        width: calc(100% - 55px);
        max-width: calc(100% - 55px);

        .plugin-local-headImg {
            width: 28px;
            height: 28px;
            margin-right: 8px;
            border-radius: 50%;
        }

        .plugin-local-scriptName {
            font-size: 12px;
            color: var(--Colors-Use-Neutral-Text-1-Title);
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            word-break: break-all;
            max-width: calc(100% - 140px);
            margin-right: 8px;
        }
    }

    .plugin-local-item-isDragging {
        background-color: var(--Colors-Use-Main-Bg);
        border: 1px solid var(--Colors-Use-Main-Primary);
        border-radius: 4px;
        padding-left: 8px;

        .first-drag-state {
            position: absolute;
            bottom: -24px;
            left: 0;

            svg {
                color: var(--Colors-Use-Error-Primary);
            }
        }
    }
}

.question-tooltip {
    :global {
        .ant-tooltip-arrow {
            right: 3px;
        }

        .ant-tooltip-placement-top,
        .ant-tooltip-placement-topLeft,
        .ant-tooltip-placement-topRight {
            padding-bottom: 8px;
        }
    }
}

.terminal-popover {
    width: 429px;

    :global {
        .ant-popover-inner-content {
            height: 40vh;
            padding: 4px;
        }

        .ant-popover-inner {
            border-radius: 4px;
        }

        .ant-popover-arrow {
            right: 0;
        }

        .ant-popover-placement-top,
        .ant-popover-placement-topLeft,
        .ant-popover-placement-topRight {
            padding-bottom: 8px;
        }
    }
}

.subMenu-edit-modal {
    padding: 18px 24px;

    .subMenu-edit-modal-heard {
        display: flex;
        justify-content: space-between;

        .subMenu-edit-modal-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--Colors-Use-Neutral-Text-1-Title);
        }

        .close-icon {
            color: var(--Colors-Use-Neutral-Disable);

            svg {
                width: 16px;
                height: 16px;

                &:hover {
                    color: var(--Colors-Use-Main-Primary);
                }
            }
        }
    }

    .subMenu-edit-modal-body {
        padding-top: 16px;
        padding-bottom: 38px;
    }

    .subMenu-edit-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }
}

.confirm-modal {
    padding: 28px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .confirm-icon {
        color: var(--Colors-Use-Warning-Primary);
    }

    .confirm-text {
        font-weight: 600;
        font-size: 14px;
        line-height: 20px;
        color: var(--Colors-Use-Neutral-Text-1-Title);
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .confirm-tip {
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        color: var(--Colors-Use-Neutral-Text-1-Title);

        span {
            color: var(--Colors-Use-Main-Primary);
            margin: 0 4px;
        }
    }

    .confirm-buttons {
        margin-top: 24px;

        .confirm-btn {
            margin-right: 8px;
        }
    }
}

.json-export {
    height: 224px;
    padding: 24px;

    .json-export-heard {
        display: flex;
        align-items: flex-start;

        .json-export-icon {
            color: var(--Colors-Use-Warning-Primary);
            margin-right: 16px;
        }

        .json-export-title {
            font-weight: 600;
            font-size: 16px;
            line-height: 24px;
            color: var(--Colors-Use-Neutral-Text-1-Title);
        }
    }
}

.menu-item-isDragDisabled {
    opacity: 0.3;
}

.plugin-local-icon {
    color: var(--Colors-Use-Neutral-Disable);
    margin-right: 8px;
    cursor: pointer;

    svg {
        width: 16px;
        height: 16px;

        &:hover {
            color: var(--Colors-Use-Main-Primary);
        }
    }
}
